package org.eclipse.moquette.server.netty.metrics;

/**
 * Created by alex on 15-5-31.
 */
public class MessageMetrics {

    private long m_messagesRead = 0;
    private long m_messagesWrote = 0;

    void incrementRead(long numMessages) {
        m_messagesRead += numMessages;
    }

    void incrementWrote(long numMessages) {
        m_messagesWrote += numMessages;
    }

    public long messagesRead() {
        return m_messagesRead;
    }

    public long messagesWrote() {
        return m_messagesWrote;
    }

}
